﻿<Application 
    x:Class="Microsoft.Samples.WindowsPhoneCloud.Phone.App"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:system="clr-namespace:System;assembly=mscorlib"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:converters="clr-namespace:Microsoft.Samples.WindowsPhoneCloud.Phone.Converters"
    xmlns:fed="clr-namespace:SL.Phone.Federation.Utilities;assembly=SL.Phone.Federation">

    <!--Application Resources-->
    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="Resources/Styles.xaml"/>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>

        <system:String x:Key="ApplicationNameString">WAT WINDOWS PHONE</system:String>

        <!--Value converters-->
        <converters:VisibilityConverter x:Key="VisibilityConverter" />
        <converters:DateConverter x:Key="DateConverter" />

        <!--This application ID, it is used to diferentiate all possible clients-->
        <system:String x:Key="ApplicationId">WindowsPhoneCloud.Phone</system:String>

        <!--Toolkit services' resources (to avoid having to store the Azure Storage account name and key in the phone application)-->
        <system:String x:Key="SSLCertificateUrl">http://127.0.0.1:10080/127.0.0.1.cer</system:String>
        <system:String x:Key="RegistrationServiceEndpoint">https://127.0.0.1/RegistrationService</system:String>
        <system:String x:Key="PushNotificationServiceEndpoint">https://127.0.0.1/PushNotificationService</system:String>
        <system:String x:Key="SqlOdataEndpoint">https://127.0.0.1/SqlAzureSampleODataService</system:String>

        <!--Push notification resources-->
        <system:String x:Key="PushChannelName">WATWindowsPhonePushChannel</system:String>
        <system:String x:Key="PushServiceName">Microsoft.Samples.WindowsPhoneCloud.Phone.PushService</system:String>

        <!-- ACS resources -->
        <fed:RequestSecurityTokenResponseStore x:Key="rstrStore" />
        <system:String x:Key="acsNamespace">[yournamespace]</system:String>
        <system:String x:Key="realm">uri:wazmobiletoolkit</system:String>
    </Application.Resources>

    <Application.ApplicationLifetimeObjects>
        <!--Required object that handles lifetime events for the application-->
        <shell:PhoneApplicationService 
            Launching="Application_Launching" Closing="Application_Closing" 
            Activated="Application_Activated" Deactivated="Application_Deactivated"/>
    </Application.ApplicationLifetimeObjects>

</Application>